package com.wh.minihelp.flower.domain;

import java.util.Date;

import com.wh.db.domain.IDBase;

public class FamilyFlower extends IDBase {
	/**
	 * 红花名称
	 */
	private String name;
	/**
	 * 类型：0=加分=SysFlower.ADD；1=减分=SysFlower.SUB
	 */
	private int type = SysFlower.ADD;
	/**
	 * 家庭关联
	 */
	private String familyId;
	/**
	 * 
	 */
	private int order;

	/**
	 * 操作时间
	 */
	private Date createDate;

	@Override
	public String toString() {
		return name + "[" + (type == SysFlower.ADD ? "加" : "减") + "]";
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFamilyId() {
		return familyId;
	}

	public void setFamilyId(String familyId) {
		this.familyId = familyId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public int getType() {
		return type;
	}

	public String getTypeString() {
		return type == SysFlower.ADD ? "加" : "减";
	}

	public void setType(int type) {
		this.type = type;
	}
}